package com.kkwrite.regimen.provider.service.review;

import com.kkwrite.regimen.common.entity.dto.order.OrderReviewQueryOutDTO;
import com.kkwrite.regimen.common.entity.dto.order.OrderReviewSubmitInDTO;
import com.kkwrite.regimen.provider.exception.ServiceException;

import java.util.List;

/**
 * Created by lisha on 2018/7/24 10:57.
 *
 * @author lisha
 */
public interface ReviewService {

    /**
     * 根据订单编号查询评价信息
     * @param orderCode 订单编号
     * @return List&lt;OrderReviewQueryOutDTO&gt;
     * @throws ServiceException 订单无评价或订单评价图查询异常时抛出该异常
     */
    List<OrderReviewQueryOutDTO> findByOrderCode(String orderCode) throws ServiceException;

    /**
     * 保存订单评价
     * @param reviewData 订单评价数据
     */
    void save(final OrderReviewSubmitInDTO reviewData);

}
